package activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.Button;

import com.example.administrator.ci_edit.R;

/**
 * Created by mary on 2017/7/12.
 */

public class LoginActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.login);
//        AlphaAnimation aa = new AlphaAnimation(0.3f,1.0f);
//        aa.setDuration(2000);
//        view.startAnimation(aa);
//        aa.setAnimationListener(new AnimationListener()
//                                {
//                                    @Override
//                                    public void onAnimationEnd(Animation arg0) {
//                                        redirectTo();
//                                    }
//                                    @Override
//                                    public void onAnimationRepeat(Animation animation) {}
//                                    @Override
//                                    public void onAnimationStart(Animation animation) {}
//
//                                }
//        Button btn_login=(Button)findViewById(R.id.btn_login);
//        EditText editText1=(EditText)findViewById(R.id.editText);
//        UserName=R.id.editText.UserName;
        Button button;
        button = (Button)findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();//ACTION_SENDTO);
//                intent.setData(Uri.parse("mailto:470465652@qq.com"));
//                intent.putExtra(Intent.EXTRA_SUBJECT,"THIS IS AN EMAIL");
//                intent.putExtra(Intent.EXTRA_TEXT,"HEY");
//                startActivity(intent);
                intent.setClass(LoginActivity.this,Login2Activity.class);
                startActivity(intent);

            }
        });
    }
}
